/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import javax.ejb.Stateful;

/**
 *
 * @author william
 */
@Stateful
public class Host implements Serializable {

    private String name;
    private String ip;
    private String owner;
    private Date reported;
    private ArrayList<Metrics> metrics;

    public Host() {
    }

    public Host(String name, String ip, String owner, Date reported, ArrayList<Metrics> metrics) {
        this.name = name;
        this.ip = ip;
        this.owner = owner;
        this.reported = reported;
        this.metrics = metrics;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public ArrayList<Metrics> getMetrics() {
        return metrics;
    }

    public void setMetrics(ArrayList<Metrics> metrics) {
        this.metrics = metrics;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public Date getReported() {
        return reported;
    }

    public void setReported(Date reported) {
        this.reported = reported;
    }

    @Override
    public String toString() {
        return "Host{" + "name=" + name + ", ip=" + ip + ", owner=" + owner + ", reported=" + reported + ", metrics=" + metrics + '}';
    }
}
